<?php
/**
 * 所有与平台有关的配置信息
 */
defined( 'IN_DICE' ) or die( 'Access Error!' );

$cfg['platform'] = array( //开通的平台信息 ( pkey:平台唯一标志, name:平台名称, url:平台地址)
  1 => array( 'pkey' => 'renren', 'name' => '人人', 'url' => 'http://www.renren.com/' ),
  2 => array( 'pkey' => 'manyou', 'name' => '漫游', 'url' => 'http://www.manyou.com/' ),
  3 => array( 'pkey' => 'fiveone', 'name' => '51', 'url' => 'http://www.51.com/' ),
  4 => array( 'pkey' => 'fb', 'name' => 'Facebook', 'url' => 'http://www.facebook.com/' ),
  5 => array( 'pkey' => 'sdo', 'name' => '盛大糖果', 'url' => 'http://t.sdo.com/' ),
);

foreach ( $cfg['platform'] as $k => $v ) {
  $cfg['openpf'][] = $v['pkey']; //已开放的平台
}

if( $cfg['testapp'] ) { //测试应用的配置
  
  $cfg['renren_pfid'] = 1; //人人的平台ID
  $cfg['renren_apiurl'] = '';
  $cfg['renren_apiid'] = '';
  $cfg['renren_apikey'] = '';
  $cfg['renren_apisecret'] = '';

  $cfg['manyou_pfid'] = 2; //漫遊的平台ID
  $cfg['manyou_apiurl'] = '';
  $cfg['manyou_apiid'] = '';
  $cfg['manyou_apikey'] = '';
  $cfg['manyou_apisecret'] = '';
  
  $cfg['fiveone_pfid'] = 3; //51的平台ID
  $cfg['fiveone_apiurl'] = '';
  $cfg['fiveone_apiid'] = '';
  $cfg['fiveone_apikey'] = '';
  $cfg['fiveone_apisecret'] = '';
  
  $cfg['facebook_pfid'] = 4; //facebook的平台ID
  $cfg['facebook_apiurl'] = '';
  $cfg['facebook_apiid'] = '';
  $cfg['facebook_apikey'] = '';
  $cfg['facebook_apisecret'] = '';

  $cfg['sdo_pfid'] = 5; //sdo的平台ID
  $cfg['sdo_apiurl'] = '';
  $cfg['sdo_apiid'] = '';
  $cfg['sdo_apikey'] = '';
  $cfg['sdo_apisecret'] = '';
  
} else { //正式应用的配置
  
  $cfg['renren_pfid'] = 1; //人人的平台ID
  $cfg['renren_apiurl'] = '';
  $cfg['renren_apiid'] = '';
  $cfg['renren_apikey'] = '';
  $cfg['renren_apisecret'] = '';

  $cfg['manyou_pfid'] = 2; //漫遊的平台ID
  $cfg['manyou_apiurl'] = '';
  $cfg['manyou_apiid'] = '';
  $cfg['manyou_apikey'] = '';
  $cfg['manyou_apisecret'] = '';
  
  $cfg['fiveone_pfid'] = 3; //51的平台ID
  $cfg['fiveone_apiurl'] = '';
  $cfg['fiveone_apiid'] = '';
  $cfg['fiveone_apikey'] = '';
  $cfg['fiveone_apisecret'] = '';
  
  $cfg['facebook_pfid'] = 4; //facebook的平台ID
  $cfg['facebook_apiurl'] = '';
  $cfg['facebook_apiid'] = '';
  $cfg['facebook_apikey'] = '';
  $cfg['facebook_apisecret'] = '';

  $cfg['sdo_pfid'] = 5; //sdo的平台ID
  $cfg['sdo_apiurl'] = '';
  $cfg['sdo_apiid'] = '';
  $cfg['sdo_apikey'] = '';
  $cfg['sdo_apisecret'] = '';
  
}



